package com.test.hashmap.base.treemap;

import java.util.TreeMap;

public class ServiceB extends Thread {
    private TreeMap treeMap;

    public ServiceB(TreeMap treeMap) {
        this.treeMap = treeMap;
    }

    @Override
    public void run() {
        System.out.println("serviceB要取treeMap中的数据了");
        System.out.println("ServiceB  " + treeMap.pollLastEntry());
    }
}
